package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="WebPageUnitMap"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class WebPageUnitMap implements Serializable {

    /** identifier field */
    private Integer id;

    /** persistent field */
    private Integer pageid;

    /** persistent field */
    private String unittype;

    /** nullable persistent field */
    private Integer unittop;

    /** nullable persistent field */
    private Integer unitleft;

    /** nullable persistent field */
    private Integer unitwidth;

    /** nullable persistent field */
    private Integer unitheight;

    /** nullable persistent field */
    private String forecolor;

    /** nullable persistent field */
    private String bgcolor;

    /** nullable persistent field */
    private String other;

    /** nullable persistent field */
    private Long paramid;

    /** full constructor */
    public WebPageUnitMap(Integer pageid, String unittype, Integer unittop, Integer unitleft, Integer unitwidth, Integer unitheight, String forecolor, String bgcolor, String other, Long paramid) {
        this.pageid = pageid;
        this.unittype = unittype;
        this.unittop = unittop;
        this.unitleft = unitleft;
        this.unitwidth = unitwidth;
        this.unitheight = unitheight;
        this.forecolor = forecolor;
        this.bgcolor = bgcolor;
        this.other = other;
        this.paramid = paramid;
    }

    /** default constructor */
    public WebPageUnitMap() {
    }

    /** minimal constructor */
    public WebPageUnitMap(Integer pageid, String unittype) {
        this.pageid = pageid;
        this.unittype = unittype;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="id"
     *             unsaved-value="0"
     *         
     */
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="pageid"
     *             length="10"
     *             not-null="true"
     *         
     */
    public Integer getPageid() {
        return this.pageid;
    }

    public void setPageid(Integer pageid) {
        this.pageid = pageid;
    }

    /** 
     *            @hibernate.property
     *             column="unittype"
     *             length="6"
     *             not-null="true"
     *         
     */
    public String getUnittype() {
        return this.unittype;
    }

    public void setUnittype(String unittype) {
        this.unittype = unittype;
    }

    /** 
     *            @hibernate.property
     *             column="unittop"
     *             length="10"
     *         
     */
    public Integer getUnittop() {
        return this.unittop;
    }

    public void setUnittop(Integer unittop) {
        this.unittop = unittop;
    }

    /** 
     *            @hibernate.property
     *             column="unitleft"
     *             length="10"
     *         
     */
    public Integer getUnitleft() {
        return this.unitleft;
    }

    public void setUnitleft(Integer unitleft) {
        this.unitleft = unitleft;
    }

    /** 
     *            @hibernate.property
     *             column="unitwidth"
     *             length="10"
     *         
     */
    public Integer getUnitwidth() {
        return this.unitwidth;
    }

    public void setUnitwidth(Integer unitwidth) {
        this.unitwidth = unitwidth;
    }

    /** 
     *            @hibernate.property
     *             column="unitheight"
     *             length="10"
     *         
     */
    public Integer getUnitheight() {
        return this.unitheight;
    }

    public void setUnitheight(Integer unitheight) {
        this.unitheight = unitheight;
    }

    /** 
     *            @hibernate.property
     *             column="forecolor"
     *             length="20"
     *         
     */
    public String getForecolor() {
        return this.forecolor;
    }

    public void setForecolor(String forecolor) {
        this.forecolor = forecolor;
    }

    /** 
     *            @hibernate.property
     *             column="bgcolor"
     *             length="20"
     *         
     */
    public String getBgcolor() {
        return this.bgcolor;
    }

    public void setBgcolor(String bgcolor) {
        this.bgcolor = bgcolor;
    }

    /** 
     *            @hibernate.property
     *             column="other"
     *             length="50"
     *         
     */
    public String getOther() {
        return this.other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    /** 
     *            @hibernate.property
     *             column="paramid"
     *             length="10"
     *         
     */
    public Long getParamid() {
        return this.paramid;
    }

    public void setParamid(Long paramid) {
        this.paramid = paramid;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
